package kablamo;

import org.glassfish.grizzly.Connection;

public class SensorContextState {
	private Connection connection;
	private boolean isAuthorized;
	private int currentDataPoints;
	private long currentTimeStamp;
	
	
	public SensorContextState(Connection connection) {
		setConnection(connection);
		this.isAuthorized = false;
	}
	
	public long getCurrentTimeStamp() {
		return currentTimeStamp;
	}
	public void setCurrentTimeStamp(long currentTimeStamp) {
		this.currentTimeStamp = currentTimeStamp;
	}
	
	public int getCurrentDataPoints() {
		return currentDataPoints;
	}
	public void setCurrentDataPoints(int currentDataPoints) {
		this.currentDataPoints = currentDataPoints;
	}
	
	public boolean getAuthorized() {
		return isAuthorized;
	}
	public void setAuthorized(boolean isAuthorized) {
		this.isAuthorized = isAuthorized;
	}
	
	public void setConnection(Connection connection) {
		this.connection = connection;
	}
	public Connection getConnection() {
		return connection;
	}
}
